import json
import os

fd=open("ip.json", "r", encoding="utf-8")
js=fd.read()
data=json.loads(js)
os.system("del ip.txt")
for i in data:
    # print(i)
    d=dict(i)
    ip_text=d["ip"]+":"+d["port"]
    fd=open("ip.txt", "a", encoding="utf-8")
    fd.write(ip_text+"\n")
print('已完成')